@model OurWedding1.Models.ConfirmationKey
@using OurWedding1
@* This partial view defines form fields that will appear when creating and editing entities *@


<div class="editor-label">
    @Html.LabelFor(model=>model.GuestGroupId)
</div>
<div class="editor-field">
@* ReSharper disable PossibleNullReferenceException *@
    @Html.DropDownListFor(model => model.GuestGroupId, ((IEnumerable<OurWedding1.Models.GuestGroup>)ViewBag.PossibleGuestGroups).Select(option => new SelectListItem {
        Text = (option == null ? @Resources.None : option.Name), 
        Value = option.GuestGroupId.ToString(),
        Selected = (Model != null) && (option.GuestGroupId == Model.GuestGroupId)
    }), @Resources.Choose)
@* ReSharper restore PossibleNullReferenceException *@
    @Html.ValidationMessageFor(model => model.GuestGroupId)
</div>

@Html.HiddenFor(model=>model.Key)

<div class="editor-label">
    @Html.LabelFor(model => model.isReleased)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.isReleased)
    @Html.ValidationMessageFor(model => model.isReleased)
</div>

@Html.HiddenFor(model=>model.ConfirmationDate)

<div class="editor-label">
    @Html.LabelFor(model => model.isConfirmed)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.isConfirmed)
    @Html.ValidationMessageFor(model => model.isConfirmed)
</div>


